<script>
export default{
    methods:{
        fn(){
            this.$emit('abc')
        }
    }
}
</script>

<template>  
<button @click="fn" class="btn">click me</button>
<br>    
<button class="btn">4324</button>
</template>

<style scoped>
.btn{
    color: green;
}
</style>
